<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/q_log/q_log.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/q_log/q_log.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: 'q_log',
                name: 'q_log/q_log',
                url: "/q_log/",
                sortName: "ID"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'ID',title:'ID',type:'int',width:110,require:true,align:'left',sort:true},
                       {field:'yewu_dt',title:'日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'yewu_mc',title:'义务名称',type:'string',width:120,align:'left'},
                       {field:'yewu_ID',title:'业务ID',type:'guid',width:110,align:'left'},
                       {field:'bm',title:'编码',type:'string',width:120,align:'left'},
                       {field:'sl',title:'数量',type:'float',width:110,require:true,align:'left'},
                       {field:'je',title:'金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'wsje',title:'无税金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'kc_id',title:'库存ID',type:'guid',width:110,align:'left'},
                       {field:'yewu_dh',title:'业务单号',type:'string',width:120,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
